package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 行政区划管理对象 sys_region
 * 
 * @author ruoyi
 * @date 2025-06-27
 */
public class SysRegion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Integer id;

    /** 行政区划代码 */
    @Excel(name = "行政区划代码")
    private String regionCode;

    /** 区域名称 */
    @Excel(name = "区域名称")
    private String regionName;

    /** 区域全称 */
    @Excel(name = "区域全称")
    private String fullName;

    /** 上级行政区名字 */
    @Excel(name = "上级行政区名称")
    private String parentName;

    /** 层级(1-省/直辖市,2-市,3-区/县) */
    @Excel(name = "层级")
    private Integer level;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    /** 上级行政区ID */
    @Excel(name = "上级行政区ID")
    private Integer parentId;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setRegionCode(String regionCode) 
    {
        this.regionCode = regionCode;
    }

    public String getRegionCode() 
    {
        return regionCode;
    }

    public void setRegionName(String regionName) 
    {
        this.regionName = regionName;
    }

    public String getRegionName() 
    {
        return regionName;
    }

    public void setFullName(String fullName) 
    {
        this.fullName = fullName;
    }

    public String getFullName() 
    {
        return fullName;
    }

    public void setParentName(String parentName) 
    {
        this.parentName = parentName;
    }

    public String getParentName() 
    {
        return parentName;
    }

    public void setLevel(Integer level) 
    {
        this.level = level;
    }

    public Integer getLevel() 
    {
        return level;
    }

    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }

    public void setParentId(Integer parentId) 
    {
        this.parentId = parentId;
    }

    public Integer getParentId() 
    {
        return parentId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("regionCode", getRegionCode())
            .append("regionName", getRegionName())
            .append("fullName", getFullName())
            .append("parentName", getParentName())
            .append("level", getLevel())
            .append("sort", getSort())
            .append("parentId", getParentId())
            .toString();
    }
}
